import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import cesium from 'vite-plugin-cesium'
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(), cesium()],
  base: './',//修改打包路径相对路径,这样可以放到网站子目录
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
      "@c": path.resolve(__dirname,"src/components"),
      "/images":"src/assets/images/",
      "/model":"src/assets/model/",
      "/data": "src/assets/data/",
    },
    extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
  },
})